Each video output device has a finite number of display modes. Each mode has several characteristics, including width and height of the display, pixel depth, and video refresh rate. This section describes functions for getting and setting the display mode.
To get a list of the display modes supported by a video output component, call the QTVideoOutputGetDisplayModeList function. The list is a QT atom container, and list atoms contain the characteristics of each mode. You use QT atom container functions, such as QTFindChildByIndex , to extract the contents of the list.
To specify a display mode to use, call the QTVideoOutputSetDisplayMode function.
To find out the current display mode, call the QTVideoOutputGetDisplayMode function.
The QTVideoOutputGetDisplayMode function gets the current display mode for a video output component.
pascal ComponentResult QTVideoOutputGetDisplayMode (
QTVideoOutputComponent vo,
long *displayModeID);
The QTVideoOutputGetDisplayModeList function gets a list of the display modes supported by a video output component.
pascal ComponentResult QTVideoOutputGetDisplayModeList (
QTVideoOutputComponent vo,
QTAtomContainer *outputs);
You can use the QTVideoOutputSetDisplayMode function in your software to specify the display mode to be used by a video output component.
pascal ComponentResult QTVideoOutputSetDisplayMode(
QTVideoOutputComponent vo,
long displayModeID);
When software changes the display mode with the QTVideoOutputSetDisplayMode function, the change does not take effect until the next time the software calls the QTVideoOutputBegin function for the video output component. This lets the software change other output settings before displaying the video.
| Previous | Chapter Contents | Chapter Top | Next |